package com.xzit.day04.service;

import com.github.pagehelper.PageInfo;
import com.xzit.day04.entity.Emp;

import java.util.List;

public interface EmpService {
    void add(Emp emp);
    void deleteById(int id);
    void deleteByCondition(Emp emp);
    void update(Emp emp);
    Emp findById(int id);
    List<Emp> findAll();
    PageInfo<Emp> findAllByPage(int pageNum, int pageSize);
    PageInfo<Emp> findByConditionByPage(Emp emp, int pageNum, int pageSize);
}
